Skip to content

test(net): skip only the IPv6 socket checks on a host without IPv6 - #2251

Merged
oneandonlydean merged 1 commit into
boykopovar:mainfrom
zmeizy:claude/sce-net-without-ipv6
Oct 9, 2026
Merged

oneandonlydean merged 1 commit into
boykopovar:mainfrom
zmeizy:claude/sce-net-without-ipv6

Conversation

@zmeizy

@zmeizy zmeizy commented Oct 9, 2026

Copy link
Copy Markdown
Contributor

What

On a host whose kernel has no IPv6, socket(AF_INET6) fails with EAFNOSUPPORT, so guest_sce_net aborted at its first IPv6 socket in CheckUnspecifiedIpv6 and never ran the TCP, UDP, epoll, sceNetSendmsg/sceNetRecvmsg, resolver and NetCtl checks after it.

When sceNetSocket reports guest EAFNOSUPPORT (47) for the IPv6 socket, the test now skips those IPv6 socket checks, runs the rest, and exits with 77, which ctest reports as skipped (SKIP_RETURN_CODE 77, as guest_video_out_wqhd_detection does). The IPv6 address-text checks still run. Hosts with IPv6 run every check as before.

Tested

Ubuntu 24.04 container whose kernel has no IPv6 (/proc/net/if_inet6 absent): before, guest_sce_net aborted (Subprocess aborted); after, every other check runs and passes and ctest reports it as Skipped. The IPv6 path cannot be run there; on a host with IPv6 the added branch is not taken, so CI runs the same checks as before. Full ctest --parallel 4 --timeout 120 on d70b8998 with this change and the two other fixes applied: 513 tests, 0 failures.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt (n/a)
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source (n/a)
  • Generic behaviour, not specific to one title
  • Depends on: none
  • AI-assisted: yes

🤖 Generated with Claude Code

https://claude.ai/code/session_01Ha6Tsy62AFUyp9a5Mf7vjA

On a host without IPv6, socket(AF_INET6) fails with EAFNOSUPPORT, so
guest_sce_net aborted at its first IPv6 socket and never ran the TCP,
UDP, epoll, sendmsg/recvmsg, resolver and NetCtl checks after it.

When sceNetSocket reports guest EAFNOSUPPORT (47) for the IPv6 socket,
skip those socket checks, run the rest of the test, and exit with 77,
which ctest reports as skipped. Hosts with IPv6 run every check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Ha6Tsy62AFUyp9a5Mf7vjA

@MarcZX10 MarcZX10 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the full diff and reran Conventions on the exact head. The skip is limited to the IPv6 socket checks after guest EAFNOSUPPORT (47); IPv6 address text checks and the remaining IPv4, TCP, UDP, resolver, epoll, message, and NetCtl checks still execute. CTest maps only this test's 77 exit to skipped. The PR reports a full 513-test run with this change applied and a reproduction on a host without IPv6. No blocking issues found.

@popcoder565

Copy link
Copy Markdown
Contributor

Native Windows run, since no Windows results were posted. Setup: Windows 10 (19045), MinGW-w64 GCC 15.2.0 (WinLibs r7), Release. Head 4a2769f2, merged onto main d70b899 in one build with 38 other PRs that had no Windows run.

No title was run.

🤖 Addressed by Claude Code

@oneandonlydean
oneandonlydean merged commit dcb3180 into boykopovar:main Oct 9, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants